<template>
	<view class="content">
		<!-- <scroll-view :scroll-top="scrollTop" :style="'height:'+contentHeight+'px'" scroll-y="true" class="scroll-Y"
		    @scrolltoupper="scrolltoupper" @scrolltolower="scrolltolower" lower-threshold=50  @scroll="scroll">
			<c-banner></c-banner>
		</scroll-view> -->
		<button @click="test">测试提交数组</button>
		1111111111
	</view>
</template>

<script>	
	export default {
		data() {
			return {
				title: 'Hello',
				rows:[],				
				windowHeight: 0
			}
		},
		onLoad() {
			this.windowHeight = uni.getSystemInfoSync().windowHeight;
			
			//创建节点选择器 获取底部导航高度 
			//this.contentHeight=(winHeight-uni.upx2px(100));
		},
		mounted() {
			for(var i = 0;i < 20;i++){
				this.rows.push({content:`内容 ${i}`});
			}			
		},
		computed: {
		    contentHeight() {
		        return this.windowHeight
		    }
		},		
		methods: {
			// 滚动到顶部
			scrolltoupper(){
				
			},
			// 滚动到底部
			scrolltolower(){
				
			},
			yxLogin(){
				
			},
			test(){
				this.$api.test.test().then(res=>{
					
				}).catch(err=>{
					
				})
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
